package com.csun.cmny.provider.dao;


import com.csun.cmny.provider.pojo.OldmanNurse;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface OldmanNurseMapper {
    int deleteByPrimaryKey(Integer billId);

    int insert(OldmanNurse record);

    int insertSelective(OldmanNurse record);

    OldmanNurse selectByPrimaryKey(Integer billId);

    int updateByPrimaryKeySelective(OldmanNurse record);
    List<OldmanNurse> selectByOldmanIdOrderByNurseDate(Map<String, Object> queryMap);
    int updateByPrimaryKey(OldmanNurse record);

    List<OldmanNurse> selectByOldmanId(Map<String,Object> queryMap);

    OldmanNurse selectByOldmanIdAndDate(@Param("oldmanId")Integer oldmanId,@Param("currentDate")String currentDate);

    int updateById(OldmanNurse nurse);

    int delOldNurseByOid(Integer oldmanId);
    /**
     * @description: TODO 获取最近一条护理记录
     * @param: oldmanId
     * @return: 
     * @throws 
     * @author huangxm
     * @date 2019/3/11 17:46 
     */
    OldmanNurse selectRecentNurse(@Param(value = "oldmanId")Integer oldmanId);
}